﻿using System.Collections.Generic;
using System.Collections;
using System.IO;
using System.Xml;
using System.Xml.Serialization;
using System;
using System.Linq;
using System.Text;
using System.Xml.Linq;
using System.Xml.Schema;

namespace ScormModel
{
    [Serializable()]
    public class Map
    {
        private string _targetID;
        private string _readSharedData = "true";
        private string _writeSharedData = "true";
         [NonSerialized]
        private XmlNode _mapContent;
        [XmlAttribute("targetID")]
        public string TargetID
        {
            get { return this._targetID; }
            set { this._targetID = value; }
        }
        [XmlAttribute("readSharedData")]
        public string ReadSharedData
        {
            get { return this._readSharedData; }
            set { this._readSharedData = value; }
        }
        [XmlAttribute("writeSharedData")]
        public string WriteSharedData
        {
            get { return this._writeSharedData; }
            set { this._writeSharedData = value; }
        }
        
        [XmlIgnoreAttribute]
        public XmlNode MapContent
        {
            get { return this._mapContent; }
            set { this._mapContent = value; }
        }
        public void buildMap()
        {
            //incomplete

        }
    }
}
